/**
 * Created by xinxinran on 2017/8/22.
 */
'use strict';
const dispatcher = require('../socket/requestDispatcher');

module.exports.registerSocketService = function(server){

    //socket: 注册设备信息
    server.register('/registerDevice', dispatcher.handleService('jspApi.regDevice'));

    //socket: 获取文档中定义的jsp的访问路径
    server.register('/addDocPaths', dispatcher.handleService('jspApi.addDocPaths'));

    //socket: 查找相关路径的jsp数据
    server.register('/searchJspData', dispatcher.handleService('jspApi.searchJspData'));

    //socket: 提交相关路径的jsp数据
    server.register('/uploadJspData', dispatcher.handleService('jspApi.uploadJspData'));

    //socket: 设备下线
    server.register('/offline', dispatcher.handleService('jspApi.offline'))
};